//
//  TYZCustomButton.h
//  ESTSCRMAPP
//
//  Created by 李贤立 on 2018/9/30.
//  Copyright © 2018年 Capfer. All rights reserved.
//

#import "TYZButton.h"
/**
 *  图片和文字位置
 */
typedef NS_ENUM(NSInteger, TYZCustomButtonMode) {
    /**图片在左，文字在右*/
    CustomButtonMode_Default = 0,
    /**图片在右，文字在左*/
    CustomButtonMode_Right = 1,
    /**图片在上，文字在下*/
    CustomButtonMode_Up = 2,
    /**图片在下，文字在上*/
    CustomButtonMode_Down = 3,
};
@interface TYZCustomButton : TYZButton
/**
 *  图片内容
 */
@property(nonatomic, assign) TYZCustomButtonMode imageModel;
+ (instancetype)buttonWithImage:(UIImage *)image title:(NSString *)title imageMode:(TYZCustomButtonMode)imageModel;
@end
